import logging
def log_set():
    logging.basicConfig(filename='log.txt',level=logging.DEBUG,filemode='w+',
                        format="%(asctime)s -> %(levelno)s -> %(message)s ")

import yagmail
def send_sart(filename):
    mail = yagmail.SMTP(user='3149797858@qq.com',password='figvaqnsmvdjdfha',host='smtp.qq.com')
    mail.send(to='3149797858@qq.com',subject='今日报告',contents='今日报告请查收',attachments=filename)

